#include "renderer.h"
#include "makeGridButton.h"
#include "flexGrid.h"

void MakeGridButton::clickedLeft(){

if (DrawingWidget::flexGrid)
  DrawingWidget::flexGrid->remove();
DrawingWidget::flexGrid=new FlexGrid;

DrawingWidget::flexGrid->trigger(parent);
renderer->actorList.push_back(DrawingWidget::flexGrid);
}

void MakeGridButton::create(){

renderer->addButton(this);
std::cout << "creating a makeGridButton!";
}
